package com.jbp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jbp.model.LuckKey;
import com.jbp.utils.PageUtils;
import java.util.Map;

/**
 * 钥匙(LuckKey)表服务接口
 * @author cc
 * @since 2021-04-29 17:54:46
 */
public interface LuckKeyService extends IService<LuckKey> {
    PageUtils queryPage(Map<String, Object> params);

    //数据更新，加乐观锁
    void updateWithLock(LuckKey luckKey);

    void buy(Integer userId, LuckKey luckKey);

    LuckKey getBuyUserId(Integer userId);
}